package com.richinfo.buddy.provider.schedule;

import java.util.Arrays;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class ScheduleProviderApplication {
	
	private static Logger logger = LoggerFactory.getLogger(ScheduleProviderApplication.class);

	public static void main(String[] args) throws Exception {

		SpringApplication.run(ScheduleProviderApplication.class, args);
	
		logger.info("=========SCHEDULE PROVIDER SERVER START=========");
	}

//	@Bean
//    public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
//        return args -> {
// 
//            System.out.println("打印Spring容器中的bean by Spring Boot:");
// 
//            String[] beanNames = ctx.getBeanDefinitionNames();
//            Arrays.sort(beanNames);
//            for (String beanName : beanNames) {
//                System.out.println(beanName);
//            }
// 
//        };
//    }

}
